package com.itsu.app.service;

import com.itsu.app.interceptor.UserThreadLocal;
import com.itsu.interfaces.entity.HuanxinUser;
import com.itsu.interfaces.service.HuanxinUserService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class AppHuanxinUserService {

    @Reference
    HuanxinUserService huanxinUserService;

    void addUser(HuanxinUser huanxinUser) {
        huanxinUserService.addUser(huanxinUser);
    }

    public Map<String, String> queryHuanXinUser() {
       return huanxinUserService.queryHuanXinUser(UserThreadLocal.getUid());
    }
}
